package com.itboye.lottery.utils;

/**
 * @Author:Create by Mr.w
 * @Date:2018/10/25 21:32
 * @Description:
 */
public class BaskcketballPrizeH {

    /**
     * 格式化胜分差 字符串样式
     *
     * @param wnm 胜分差参数
     * @return 胜分差字符串
     */
    public static String getWnm(String wnm) {
        String wnmValue = "";
        String head = "";
        if (wnm.startsWith("l")) {
            head = "客胜";
            if (wnm.equals("l1")) {
                wnmValue = "[1-5]";
            }
            if (wnm.equals("l2")) {
                wnmValue = "[6-10]";
            }
            if (wnm.equals("l3")) {
                wnmValue = "[11-15]";
            }
            if (wnm.equals("l4")) {
                wnmValue = "[16-20]";
            }
            if (wnm.equals("l5")) {
                wnmValue = "[21-25]";
            }
            if (wnm.equals("l6")) {
                wnmValue = "[26+]";
            }
        } else if (wnm.startsWith("w")) {
            head = "主胜";
            if (wnm.equals("w1")) {
                wnmValue = "[1-5]";
            }
            if (wnm.equals("w2")) {
                wnmValue = "[6-10]";
            }
            if (wnm.equals("w3")) {

                wnmValue = "[11-15]";
            }
            if (wnm.equals("w4")) {

                wnmValue = "[16-20]";
            }
            if (wnm.equals("w5")) {
                wnmValue = "[21-25]";
            }
            if (wnm.equals("w6")) {
                wnmValue = "[26+]";
            }
        }
        return head + wnmValue;
    }

    /**
     * 格式化大小分字符串样式
     *
     * @param hilo 大小分参数
     * @return 大小分字符串
     */
    public static String getHilo(String hilo) {
        String hiloValue = "";
        switch (hilo) {
            case "0":
                hiloValue = "小分";
                break;
            case "1":
                hiloValue = "大分";
                break;
        }
        return hiloValue;
    }

    /**
     * 格式化胜负字符串
     *
     * @param mnl 胜负参数
     * @return 胜负字符串
     */
    public static String getMnl(String mnl) {
        String mnlValue = "";
        switch (mnl) {
            case "0":
                mnlValue = "客胜";
                break;
            case "3":
                mnlValue = "主胜";
                break;
        }
        return mnlValue;
    }

    /**
     * 格式化让胜负字符串样式
     *
     * @param hdc 让胜负参数
     * @return 让胜负字符串
     */
    public static String getHdc(String hdc) {
        String hdcValue = "";
        switch (hdc) {
            case "0":
                hdcValue = "让客胜";
                break;
            case "3":
                hdcValue = "让主胜";
                break;
        }
        return hdcValue;
    }
}
